Skip to content

Conversation

hime
Copy link

@hime hime commented Jun 30, 2025

Fixes / Features

  • Prevent OOMs when not enough memory is provided for prefetch.

Testing / Documentation

Testing for this repo is pending.

Testing details.

  • [ y/n ] Tests pass
  • [ y/n ] Appropriate changes to documentation are included in the PR

@@ -53,6 +53,7 @@
"gke-gcsfuse/cpu-limit": "0",
"gke-gcsfuse/memory-limit": "0",
"gke-gcsfuse/ephemeral-storage-limit": "0",
"gke-gcsfuse/metadata-prefetch-memory-limit": "0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only required when argument "prefetch_metadata" is provided, what would be the best place to add this check?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would have to add the prefetch_metadata flag to Storage CRD and change this const to a function that would take the list of storages and check if any of them has the flag set.

I'm not against adding it as default here, as it probably doesn't do anything if gcsfuseMetadataPrefetchOnMount is not set (correct me if I'm wrong).

In either case I would also consider removing gke-gcsfuse/metadata-prefetch-cpu-limit and gke-gcsfuse/metadata-prefetch-ephemeral-storage-limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants